import { createSlice } from "@reduxjs/toolkit";
const initialState={
    person:{
        username:"Tom"
    }
}
export const userSlice = createSlice({
  name: "counter",
  initialState,
  reducers: {
    changeName(){}
  },
});
// 每个 case reducer 函数会生成对应的 Action creators
export const { changeName } = userSlice.actions;
export default userSlice.reducer;